colorscale: Don't free surface data before surface
authorBenjamin Otte <otte@redhat.com>
Sun, 25 Mar 2018 20:37:09 +0000 (22:37 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 25 Mar 2018 20:38:42 +0000 (22:38 +0200)
commit6bad307180127f1e4148b0bb0ee4c252686b3937
tree26de81e66d3d425d89ae75813e57bd239eeb4f0a
parent98a9f2b3c10c33245396c2c03ef77292846d9cd6
colorscale: Don't free surface data before surface

When drawing onto a recording surface, source surfaces get cached.

But if we g_free() the surface data after we're done, that cache is
gonna point at invalid data...
gtk/gtkcolorscale.c